package pannel.book;

import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Book {
    private Integer id;
    private String name;
    private String author;
    private String publisher;
    private Integer status;  // 0空置 1借出
    private Integer borrowerId;
    private java.util.Date borrowTime;
    private String imagePath;  // 新增图书封面图片路径
    
    // 状态常量
    public static final int STATUS_AVAILABLE = 0;  // 空置
    public static final int STATUS_BORROWED = 1;   // 借出
}